<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  let obj = {
    name: '李迎浩',
    age: '12',
    name: '占山'
  }

  let obj2 = {
    ...obj,
    name: '占山',
  }
  console.log(obj2);
  console.log(obj);
  let obj3 = {};
  // 对象中相同的属性名     会覆盖之前的属性名和属性值
</script>

</html>